Optimal. Leaf size=50 \[ -\frac {2}{3} \cot (x) \sqrt {a \sin ^3(x)}-\frac {2 F\left (\left .\frac {\pi }{4}-\frac {x}{2}\right |2\right ) \sqrt {a \sin ^3(x)}}{3 \sin ^{\frac {3}{2}}(x)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.01, antiderivative size = 50, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 3, integrand size = 10, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.300, Rules used = {3286, 2715,
2720} \begin {gather*} -\frac {2}{3} \cot (x) \sqrt {a \sin ^3(x)}-\frac {2 F\left (\left .\frac {\pi }{4}-\frac {x}{2}\right |2\right ) \sqrt {a \sin ^3(x)}}{3 \sin ^{\frac {3}{2}}(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2715
Rule 2720
Rule 3286
Rubi steps
\begin {align*} \int \sqrt {a \sin ^3(x)} \, dx &=\frac {\sqrt {a \sin ^3(x)} \int \sin ^{\frac {3}{2}}(x) \, dx}{\sin ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} \cot (x) \sqrt {a \sin ^3(x)}+\frac {\sqrt {a \sin ^3(x)} \int \frac {1}{\sqrt {\sin (x)}} \, dx}{3 \sin ^{\frac {3}{2}}(x)}\\ &=-\frac {2}{3} \cot (x) \sqrt {a \sin ^3(x)}-\frac {2 F\left (\left .\frac {\pi }{4}-\frac {x}{2}\right |2\right ) \sqrt {a \sin ^3(x)}}{3 \sin ^{\frac {3}{2}}(x)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.02, size = 41, normalized size = 0.82 \begin {gather*} -\frac {2 \left (F\left (\left .\frac {1}{4} (\pi -2 x)\right |2\right )+\cos (x) \sqrt {\sin (x)}\right ) \sqrt {a \sin ^3(x)}}{3 \sin ^{\frac {3}{2}}(x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.54, size = 124, normalized size = 2.48
method | result | size |
default | \(-\frac {\left (i \sqrt {-\frac {i \left (-1+\cos \left (x \right )\right )}{\sin \left (x \right )}}\, \sin \left (x \right ) \sqrt {\frac {i \cos \left (x \right )+\sin \left (x \right )-i}{\sin \left (x \right )}}\, \sqrt {-\frac {i \cos \left (x \right )-\sin \left (x \right )-i}{\sin \left (x \right )}}\, \EllipticF \left (\sqrt {\frac {i \cos \left (x \right )+\sin \left (x \right )-i}{\sin \left (x \right )}}, \frac {\sqrt {2}}{2}\right )+\left (\cos ^{2}\left (x \right )\right ) \sqrt {2}-\cos \left (x \right ) \sqrt {2}\right ) \sqrt {a \left (1-\left (\cos ^{2}\left (x \right )\right )\right ) \sin \left (x \right )}\, \sqrt {8}}{6 \sin \left (x \right ) \left (-1+\cos \left (x \right )\right )}\) | \(124\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.09, size = 69, normalized size = 1.38 \begin {gather*} \frac {\sqrt {2} \sqrt {-i \, a} \sin \left (x\right ) {\rm weierstrassPInverse}\left (4, 0, \cos \left (x\right ) + i \, \sin \left (x\right )\right ) + \sqrt {2} \sqrt {i \, a} \sin \left (x\right ) {\rm weierstrassPInverse}\left (4, 0, \cos \left (x\right ) - i \, \sin \left (x\right )\right ) - 2 \, \sqrt {-{\left (a \cos \left (x\right )^{2} - a\right )} \sin \left (x\right )} \cos \left (x\right )}{3 \, \sin \left (x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \sqrt {a \sin ^{3}{\left (x \right )}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.02 \begin {gather*} \int \sqrt {a\,{\sin \left (x\right )}^3} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________